package com.ruoyi.model.contest.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author : 张怀秋
 * 前台竞赛返回字段
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContestListVo {
    private String id;
    private String title;
    private String cover;
    private String organizer;
    private String categoryId;
    private String isTeam; //是否为团队参赛

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enrollStartDate; //报名开始时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enrollEndDate; //报名结束时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private Integer pour;

}
